package top.tagao.yygh.hosp.service;

import org.springframework.data.domain.Page;
import top.tagao.yygh.model.hosp.Department;
import top.tagao.yygh.vo.hosp.DepartmentQueryVo;
import top.tagao.yygh.vo.hosp.DepartmentVo;

import java.util.List;
import java.util.Map;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/4 9:59
 */
public interface DepartmentService {

    //上传科室接口
    void save(Map<String, Object> paramMap);

    //查询科室接口
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    //删除科室接口
    Boolean remove(String hoscode, String depcode);

    //根据医院编号，查询医院所有科室列表
    List<DepartmentVo> findDepartmentTree(String hoscode);

    //根据医院编号,科室编号 查询科室名称
    String getDepartmentName(String hoscode, String depcode);

    /**
     * @date  根据医院编号,科室编号. 查询科室
     * @param hoscode
     * @param depcode
     * @return top.tagao.yygh.model.hosp.Department
     */
    Department getDepartment(String hoscode, String depcode);
}
